package com.shop.shard.controller.command.product;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description: 代码生成器自动生成
 * @author:
 * @Createed Date: 2019-8-16 10:06:57
 * @ModificationHistory: Who  When  What
 * ---------     -------------   --------------------------------------
 **/
@Data
public class ProductUpdateCommand implements Serializable{
    /** 主键*/
    @NotNull(message = "主键不能为空")
    @ApiModelProperty(value = "主键")
    private Long productId;
    /** 商品编码*/
    @NotBlank(message = "商品编码不能为空")
    @ApiModelProperty(value = "商品编码")
    private String code;
    /** 商品名称*/
    @NotBlank(message = "商品名称不能为空")
    @ApiModelProperty(value = "商品名称")
    private String name;
    /** 商品描述*/
    @NotBlank(message = "商品描述不能为空")
    @ApiModelProperty(value = "商品描述")
    private String desc;
    /** 逻辑删除符*/
    @NotNull(message = "逻辑删除符不能为空")
    @ApiModelProperty(value = "逻辑删除符")
    private Integer deleted;
    /** 创建时间*/
    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;
    /** 更新时间*/
    @NotNull(message = "更新时间不能为空")
    @ApiModelProperty(value = "更新时间")
    private Date updateDate;
    /** 保留字段1*/
    @NotBlank(message = "保留字段1不能为空")
    @ApiModelProperty(value = "保留字段1")
    private String reserved1;
    /** 保留字段2*/
    @NotBlank(message = "保留字段2不能为空")
    @ApiModelProperty(value = "保留字段2")
    private String reserved2;
}